package fan;

/**
 * Created with IntelliJ IDEA.
 * ClassName: MyData
 * Package: fan
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-09-04
 * Time: 20:58
 */

public class MyData {

    private int year;
    private int month;
    private int day;

    public MyData() {
    }

    public MyData(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    @Override
    public String toString() {
        return year + "年" + month + "月" + day + "日";
    }
}
